package net.xdclass.service.fallback;

import lombok.extern.slf4j.Slf4j;
import net.xdclass.domain.Video;
import net.xdclass.service.VideoService;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class VideoServiceFallBack implements VideoService {
    @Override
    public Video findById(Integer id) {
        log.info("fallback findById");
        Video video = new Video();
        video.setTitle("fallback的Video");
        video.setServiceInfo("fallback的Video");
//        int i = 1 / 0;
        return video;
    }

    @Override
    public Video save(Video video) {
        return null;
    }
}
